package com.seeyon.apps.kk.manager;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.alibaba.fastjson.JSON;

public class JSONKKConfigManager extends BaseManager{
	private static final Log log = LogFactory.getLog(JSONKKConfigManager.class);
	private FreemarkFlowManager freemarkFlowManager;

	public FreemarkFlowManager getFreemarkFlowManager() {
		return freemarkFlowManager;
	}

	public void setFreemarkFlowManager(FreemarkFlowManager freemarkFlowManager) {
		this.freemarkFlowManager = freemarkFlowManager;
	}
	
	public String getJson(){
		String sql = this.freemarkFlowManager.fltTemplateIntoString("datasync/langue.ftl", null);
		return JSON.toJSONString(sql);
	}
	
	public String getContentJson(){
		String config = this.freemarkFlowManager.fltTemplateIntoString("datasync/content.ftl", null);
		return JSON.toJSONString(config);
	}
}
